from django.conf import settings
from django.conf.urls.static import static
from django.urls import path

from . import views

urlpatterns = [
    path("image_add/", views.image_add, name="image_add"),
    path("image_fullscreen/<int:pk>/", views.image_fullscreen, name="image_fullscreen"),
    path(
        "delete_img/<str:source>/<int:pk_naryad>/<int:pk_image>/",
        views.delete_img,
        name="delete_img",
    ),
    path("spec_by_prof/", views.spec_by_prof, name="spec_by_prof"),
    path("sdl_set_update/", views.sdl_set_update, name="sdl_set_update"),
    path("get_usl_by_idkv/<int:idkv>/", views.get_usl_by_idkv, name="get_usl_by_idkv"),
    path("get_stat_for_zav/", views.get_stat_for_zav, name="get_stat_for_zav"),
    path(
        "get_stat_for_doc/<int:mpp>/",
        views.get_stat_for_doc,
        name="get_stat_for_doc",
    ),
    path("period_date/", views.period_date, name="period_date"),
    path("get_nar_usl_doc/<int:mpp>/", views.get_nar_usl_doc, name="get_nar_usl_doc"),
    path("close_usl_nar/<int:naryad>/", views.close_usl_nar, name="close_usl_nar"),
    path("del_nar/<int:naryad>/", views.del_nar, name="del_nar"),
    path("resend_nar_lab/", views.resend_nar_lab, name="resend_nar_lab"),
    path(
        "get_container/<int:container>/",
        views.get_container,
        name="get_container",
    ),
    path(
        "container_info/<int:container_id>/",
        views.container_info,
        name="container_info",
    ),
    path("bonus_naryad/<int:naryad_id>/", views.bonus_naryad, name="bonus_naryad"),
    path("zav_report_finish/", views.zav_report_finish, name="zav_report_finish"),
    path(
        "service_add_podr_to_zav",
        views.service_add_podr_to_zav,
        name="service_add_podr_to_zav",
    ),
    path("mpp_podr_list/<int:mpp>/", views.mpp_podr_list, name="mpp_podr_list"),
    path("get_brigades/<int:nkv>/", views.get_brigades, name="get_brigades"),
    path("get_list_spec/", views.get_list_spec, name="get_list_spec"),
    path(
        "finish_nar_by_st/<int:nkv>/",
        views.finish_nar_by_st,
        name="finish_nar_by_st",
    ),
    path(
        "finish_nar_by_st/<int:nkv>/<int:lab>/",
        views.finish_nar_by_st,
        name="finish_nar_by_st",
    ),
    path(
        "get_brigade_arena/<int:nkv>/",
        views.get_brigade_arena,
        name="get_brigade_arena",
    ),
    path("get_lgot_by_mpp/<int:mpp>/", views.get_lgot_by_mpp, name="get_lgot_by_mpp"),
    path("get_lgot_columns/", views.get_lgot_columns, name="get_lgot_columns"),
    *static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)]
# ] + static(settings.STATIC_URL, document_root=settings.STATIC_ROOT)
